package cn.file.test;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

public  class FileUtils {
    public static void streamUtils(InputStream is, OutputStream os) throws IOException {
        byte[] bytes=new byte[1024];
        int temp=0;
        while ((temp=(is.read(bytes)))!=-1){
            os.write(bytes,0,temp);
        }
    }

}
